package com.uit.se6.customui.democustomui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.uit.se6.customui.democustomui.accordion.AccordionMainActivity;
import com.uit.se6.customui.democustomui.sidedrawer.SideDrawerMainActivity;

public class MenuActivity extends Activity implements OnClickListener {
	Button btnSideDrawer, btnAccordion;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_menu);

		btnSideDrawer = (Button) findViewById(R.id.btnSideDrawer);
		btnAccordion = (Button) findViewById(R.id.btnAccordion);
		btnAccordion.setOnClickListener(this);
		btnSideDrawer.setOnClickListener(this);
	}

	@Override
	public void onClick(View arg0) {
		switch (arg0.getId()) {
		case R.id.btnSideDrawer:
			Intent intent = new Intent(MenuActivity.this,
					SideDrawerMainActivity.class);
			this.startActivity(intent);

			break;
		case R.id.btnAccordion:
			Intent intent2 = new Intent(MenuActivity.this,
					AccordionMainActivity.class);
			this.startActivity(intent2);
			break;

		default:
			break;
		}
	}
}
